package com.ssy.lingxi.platform.template.service.model.vo.mobile;

import com.ssy.lingxi.search.api.model.response.BrandResponse;
import com.ssy.lingxi.search.api.model.response.CategoryResponse;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import java.util.ArrayList;
import java.util.List;

/**
 * mobile - 会员店铺 - VO
 * @author fhj
 * @date 2020/12/29
 * @version 2.0.0
 */
@Data
public class MemberShopMobileVO {

    @ApiModelProperty(value = "ID")
    private Long id;

    @ApiModelProperty(value = "会员ID")
    private Long memberId;

    @ApiModelProperty(value = "角色ID")
    private Long roleId;

    @ApiModelProperty(value = "会员名称")
    private String memberName;

    @ApiModelProperty(value = "公司LOGO")
    private String logo;

    @ApiModelProperty(value = "公司简介")
    private String describe;

    @ApiModelProperty(value = "厂房照片")
    private String[] workshopPics;

    @ApiModelProperty(value = "资质荣誉")
    private String[] honorPics;

    @ApiModelProperty(value = "商城ID")
    private Long shopId;

    @ApiModelProperty(value = "客服链接")
    private String customerUrl;

    @ApiModelProperty(value = "电话")
    private String phone;

    @ApiModelProperty(value = "详细地址")
    private String address;

    @ApiModelProperty(value = "经度")
    private String lng;

    @ApiModelProperty(value = "纬度")
    private String lat;

    @ApiModelProperty(value = "推广页")
    private String promotionPic;

    @ApiModelProperty(value = "创建时间")
    private Long createTime;

    @ApiModelProperty(value = "归属地市（冗余）")
    private String areas;

    @ApiModelProperty(value = "会员等级名称（冗余）")
    private String levelTag;

    @ApiModelProperty(value = "注册年数（冗余）")
    private Integer registerYears;

    @ApiModelProperty(value = "信用积分（冗余）")
    private Integer creditPoint;

    @ApiModelProperty(value = "满意度（冗余）")
    private Integer avgTradeCommentStar;

    @ApiModelProperty(value = "注册资本（冗余）")
    private String registeredCapital;

    @ApiModelProperty(value = "成立日期（冗余）")
    private String establishmentDate;

    @ApiModelProperty(value = "营业执照（冗余）")
    private String businessLicence;

    @ApiModelProperty(value = "状态：0-冻结 1-正常（冗余）")
    private Integer status;

    @ApiModelProperty(value = "收藏状态")
    private Boolean collectStatus = Boolean.FALSE;

    @ApiModelProperty(value = "店铺最新上架商品")
    private List<ProductVO> productList = new ArrayList<>();

    @Data
    public static class ProductVO {

        @ApiModelProperty(value = "商品id")
        private Long id;

        @ApiModelProperty(value = "商品图片")
        private String mainPic;

        @ApiModelProperty(value = "商品名称")
        private String name;

        @ApiModelProperty(value = "商品标语")
        private String slogan;

        @ApiModelProperty(value = "商品卖点")
        private String[] sellingPoint;

        @ApiModelProperty(value = "会员品类")
        private CategoryResponse customerCategory;

        @ApiModelProperty(value = "品牌")
        private BrandResponse brand;

        @ApiModelProperty(value = "计量单位")
        private String unitName;

        @ApiModelProperty(value = "产品定价：1-现货价格, 2-价格需要询价, 3-积分兑换商品")
        private Integer priceType;

        @ApiModelProperty(value = "最小值")
        private Double min;

        @ApiModelProperty(value = "最大值")
        private Double max;

        @ApiModelProperty(value = "会员id")
        private Long memberId;

        @ApiModelProperty(value = "会员角色id")
        private Long memberRoleId;

        @ApiModelProperty(value = "会员名称")
        private String memberName;

        @ApiModelProperty(value = "店铺id")
        private Long storeId;
    }
}

